package IO;

import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.Writer;

public class 字符流输出测试 {
    public static void main(String[] args) {
method();
    }
    public static void method(){
        Writer out=null;
        try {
            out=new BufferedWriter(new FileWriter("F:\\a\\2.txt",true));
            out.write(100);
            out.write(100);
            out.write(100);
            out.write(100);
            out.write(100);
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            try {
                out.close();
            }catch (Exception e){
                e.printStackTrace();
            }
        }
    }
    
}
